<?php   
include_once('../../../../../wp-config.php'); 
$appid    = io_get_option('open_wechat_key')['appid'];
$appkey    = io_get_option('open_wechat_key')['appkey'];
if(isset($_REQUEST['code']) && isset($_REQUEST['state'])){
	$callback = new ioLoginWechat();
	$callback->callback($appid,$appkey,$_REQUEST['code'],$_REQUEST['state']);
	$callback->use_db();
}